package org.example.pojo;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: Xenolies
 * @Date: 2023/8/13 13:49
 * @Version: 0.1
 */


public class PurchaseInfo {

    // 职位
     private String Position;

    //名称
    private String Name;

    // QQ号
    private String QQ_Code;

    // 发布时间
    private String ReleaseTime;

    private List<Product> products;

    public String getPosition() {
        return Position;
    }

    public void setPosition(String position) {
        Position = position;
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public String getQQ_Code() {
        return QQ_Code;
    }

    public void setQQ_Code(String QQ_Code) {
        this.QQ_Code = QQ_Code;
    }

    public String getReleaseTime() {
        return ReleaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        ReleaseTime = releaseTime;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder();
        sb.append("{")
                .append("\"Position\":").append(Position)
                .append(", \"Name\":").append(Name)
                .append(", \"QQ_Code\":").append(QQ_Code)
                .append(", \"ReleaseTime\":").append(ReleaseTime)
                .append(", \"products\":").append(products)
                .append('}');
        return sb.toString();
    }

}
